<include file="Public::header" />
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					Download From <a href="http://www.exet.tk">exet.tk</a></div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			<h2>Welcome {$user_info.nickname}</h2>
			<p id="page-intro">What would you like to do?</p>
		
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>用户管理</h3>
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
						<table>
							<thead>
								<tr>
								   <th><input class="check-all" type="checkbox" /></th>
								   <th>用户名</th>
								   <th>呢称</th>
								   <th>注册</th>
								   <th>更新</th>
								   <th>最后登录</th>
                                   <th>被收藏</th>
                                   <th>被查看</th>
                                   <th>
                                        <div  style="position:relative;" id="recommend">
                                            推荐
                                            <img style="padding:2px 0 0 3px;" src="__APP__/resources/image/console/icons/down.png" width="10" height="10" />
                                            <div style="display:none;position:absolute;top:20px;left:1px; width:100px; height:100px;background:#fff;border:1px solid #ccc">
                                                <p><a style="font-size:12px;font-weight:normal;line-height:18px; padding:5px 0 0 10px;" href="{:U('main/index',array('rtype'=>0))}">全部</a></p>
                                                <p><a style="font-size:12px;font-weight:normal;line-height:18px; padding:5px 0 0 10px;" href="{:U('main/index',array('rtype'=>1))}">首页推荐</a></p>
                                                <p><a style="font-size:12px;font-weight:normal;line-height:18px; padding:5px 0 0 10px;" href="{:U('main/index',array('rtype'=>2))}">人物推荐</a></p>
                                            </div>
                                        </div>
                                    
                                   </th>
                                   <th>操作</th>
								</tr>
							</thead>
                            
                            <tfoot>
								<tr>
									<td colspan="6">
										<div class="bulk-actions align-left">
											<select name="dropdown">
												<option selected="selected">选择</option>
												<option value="del">删除</option>
												<option value="recommendadd">推荐</option>
											</select>
											<a class="button" href="javascript:void(0)" id="selected">确定</a>
										</div>
										
										<div class="pagination">
                                            {$member.page_list}
											<!--<a href="#" title="First Page">&laquo; First</a><a href="#" title="Previous Page">&laquo; Previous</a>
											<a href="#" class="number" title="1">1</a>
											<a href="#" class="number" title="2">2</a>
											<a href="#" class="number current" title="3">3</a>
											<a href="#" class="number" title="4">4</a>
											<a href="#" title="Next Page">Next &raquo;</a><a href="#" title="Last Page">Last &raquo;</a>-->
										</div> <!-- End .pagination -->
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
						    
							<tbody>
                                <volist name="member.data_list" id="vo">
                                    <tr>
                                        <td><input type="checkbox" name="mid[]" value="{vo.mid}"/></td>
                                        <td><a href="{:U('Home-people/'.$vo['mid'])}" title="title">{$vo.username}</a></td>
                                        <td><a href="{:U('Home-people/'.$vo['mid'])}" title="title">{$vo.nickname}</a></td>
                                        <td>{:date('Y-m-d H:i',$vo['reg_time'])}</td>
                                        <td><php>echo (is_numeric($update_time)) ? date('Y-m-d H:i',$vo['update_time']) : '没提前过'</php></td>
                                        <td><php>echo (is_numeric($last_login)) ? date('Y-m-d H:i',$vo['last_login']) : '没登录过'</php></td>
                                        <td>{$vo.collect_c}</td>
                                        <td>{$vo.click_c}</td>
                                        <td>
                                            <php>if ($vo['recommend'] == 1){
                                                echo '首页';
                                            }else if($vo['recommend'] == 2){
                                                echo '人物';
                                            }else{
                                                echo '未推荐';
                                            }</php>
                                        </td>
                                        <td>
                                            <!-- Icons -->
                                             <!--<a href="{:U('main/edit')}" title="Edit"><img src="__APP__/resources/image/console/icons/pencil.png" alt="Edit" /></a>-->
                                             <a href="{:U('main/index',array('act'=>'update'))}" title="修改"><img src="__APP__/resources/image/console/icons/hammer_screwdriver.png" alt="Edit Meta" /></a>                                             
                                             <a href="{:U('main/del')}" title="删除"><img src="__APP__/resources/image/console/icons/cross.png" alt="Delete" /></a>
                                             <a href="javascript:void(0)" title="推荐" class="recommend"><img src="__APP__/resources/image/console/icons/recommend.png" alt="Edit Meta" /></a>
                                             <div class="recommend_post" style="display:none;">
                                                <form method="post" action="{:U('main/recommendadd')}">
                                                <p>不推荐:<input type="radio" name="rtype" value="0" <php>if ($vo['recommend'] == 0) echo 'checked="checked"';</php>></p>
                                                <p>推荐至首页:<input type="radio" name="rtype" value="1" <php>if ($vo['recommend'] == 1) echo 'checked="checked"';</php>></p>
                                                <p>推荐至人物:<input type="radio" name="rtype" value="2" <php>if ($vo['recommend'] == 2) echo 'checked="checked"';</php>></p>
                                                <p><a class="button recommend_btn" href="javascript:void(0)" >确定</a></p>
                                                <input type="hidden" name="mid" value="{$vo.mid}" />
                                                </form>
                                            </div>
                                             
                                        </td>
                                    </tr>
                                </volist>
							</tbody>
						</table>
					</div> <!-- End #tab1 -->
				</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->
<include file="Public::footer" />
<script type="text/javascript">
    var recommend_div = $('#recommend').find('div');
    $('#recommend').hover(function(){
        recommend_div.show();
    },function(){
        recommend_div.hide();
    })
    $('.recommend').click(function(){
        var recommend_post_html = $(this).next('div').html();
        $.dialog({
            lock:true,
            width:300,
            height:180,
            content :recommend_post_html,
            title: '推荐用户'
        });
    })
    $('.recommend_btn').live('click',function(){
        $(this).parents('form').submit();
    })
</script>
